package com.example.JavaWebApi.model.neo4j.relation;

import com.example.JavaWebApi.model.neo4j.node.Person;
import lombok.Data;
import org.springframework.data.neo4j.core.schema.GeneratedValue;
import org.springframework.data.neo4j.core.schema.RelationshipId;
import org.springframework.data.neo4j.core.schema.RelationshipProperties;
import org.springframework.data.neo4j.core.schema.TargetNode;

/**
 * @program: java-web-api
 * @description:
 * @author: 杨泽
 * @create: 2023-09-12 15:27
 */
@RelationshipProperties
@Data
public class Relation {
    @RelationshipId
    @GeneratedValue
    private Long id;
    @TargetNode
    private Person person;
}